Search found 260 matches
- Sat Mar 26 2022 6:50 pm
- Forum: Developers
- Topic: QStringView compare bug
- Replies: 1
- Views: 2750
QStringView compare bug
Qt::CaseSensitivity sens = noCase ? Qt::CaseInsensitive : Qt::CaseSensitive; bool retVal = false; int rslt = 0; if ( column < 1 ) { rslt = a.compare( b, sens ); } else { int pos = column - 1; QStringView aView( a.midView( pos ) ); QStringView bView( b.midView( pos ) ); rslt = aView.compare( bView, ...
- Wed Mar 23 2022 1:05 pm
- Forum: Issues
- Topic: QTabWidget documenttion issue
- Replies: 2
- Views: 5146
Re: QTabWidget documenttion issue
In general, all indexes in C++ programs start from zero. The QTabWidget class conforms to this convention. We are not aware right now of any class in CopperSpice which uses an index starting with one. Well see this discussion. https://forum.copperspice.com/viewtopic.php?f=8&t=2006 Where "i...
- Fri Mar 04 2022 12:42 am
- Forum: Issues
- Topic: QTabWidget documenttion issue
- Replies: 2
- Views: 5146
QTabWidget documenttion issue
In case I didn't report this before https://www.copperspice.com/docs/cs_api/class_qtabwidget.html#a439fc78d0153dd984cc9980b98ff45c7 ==== void QTabWidget::setCurrentIndex ( int index ) slot Sets the value of the property to index. ==== Do indexes start at zero or one? Every place that documents an in...
- Thu Mar 03 2022 1:44 pm
- Forum: Issues
- Topic: QFileDialogOptions Documentation bug
- Replies: 1
- Views: 4738
QFileDialogOptions Documentation bug
In the Diamond editor code one has // force windows 7 and 8 to honor initial path options = QFileDialog::ForceInitialDir_Win7; In the documentation https://www.copperspice.com/docs/cs_api/class_qfiledialog.html#a7a4555ae5a8887203dfbe3c061b44f77 There is no mention of this option. It compiles just fi...
- Wed Mar 02 2022 5:00 pm
- Forum: Issues
- Topic: QDialogButtonBox documentation bug
- Replies: 1
- Views: 5132
QDialogButtonBox documentation bug
https://www.copperspice.com/docs/cs_api/class_qdialogbuttonbox.html Says this is a Public method. QDialogButtonBox (StandardButtons buttons, Qt::Orientation orientation=Qt::Horizontal, QWidget *parent=nullptr) It should only require buttons and return a horizontal non-parented QDialogButtonBox. When...
- Tue Mar 01 2022 6:59 pm
- Forum: Issues
- Topic: QBoxLayout documentation bug
- Replies: 1
- Views: 4476
QBoxLayout documentation bug
https://www.copperspice.com/docs/cs_api/class_qboxlayout.html#a3659a646d45ba10a55b83c4368a599b1 ===== void QBoxLayout::addSpacing ( int size ) Adds a non-stretchable space with the given size to the end of the current QBoxLayout. This method adds additional space beyond the default margin and spacin...
- Tue Feb 22 2022 4:41 pm
- Forum: Developers
- Topic: QSqlQuery::prepare() sqlite will not work with strings
- Replies: 3
- Views: 3376
Re: QSqlQuery::prepare() sqlite will not work with strings
While it is being fixed, please be certain strings like this: '!home!roland!tnas!a.txt.b00000' can successfully be prepared. One is quite hosed when trying to use something like '%2' and QStringParser::formatArg(). SQLite does support using double quotes, but it violates the SQL "standard."...
- Tue Feb 22 2022 10:44 am
- Forum: Issues
- Topic: QSplitter indexOf() documentation bug
- Replies: 1
- Views: 4693
QSplitter indexOf() documentation bug
All, https://www.copperspice.com/docs/cs_api/class_qsplitter.html#af5098f12ce71992b9f31c175a3492ff2 Returns the index in the splitter's layout of the specified widget. This also works for handles. Handles are numbered starting from 0. There are as many handles as there are child widgets, but the han...
- Tue Feb 08 2022 10:50 am
- Forum: Developers
- Topic: QSqlQuery::prepare() sqlite will not work with strings
- Replies: 3
- Views: 3376
QSqlQuery::prepare() sqlite will not work with strings
I haven't ferreted out a stand alone example, but QSqlQuery query( db ); query.exec( cmd ); // yes, you should check for error cmd = "create table THEME_COLORS (" "THEME_NAME TEXT NOT NULL," "STYLE_NO INT DEFAULT 0," "FONT_NAME TEXT DEFAULT ''," "POINT_SI...
- Mon Feb 07 2022 10:41 pm
- Forum: Developers
- Topic: Detach QTabWidget tab
- Replies: 2
- Views: 3165
Re: Detach QTabWidget tab
I didn't burn any time going down that path because it won't work properly. The dock widget concept is that you undock something, drag it somewhere, and it exists in its undocked state. Detachable tab gets dropped to a desktop, the desktop looks for an application, launches new application instance....