Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • Setting multiple size to qtabbar

    5
    0 Votes
    5 Posts
    3k Views
    K
    thanks alot. it works so good for me
  • Infinite QTableView scrolling

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • How to get the value of a Checkbox?

    22
    0 Votes
    22 Posts
    21k Views
    K
    First of all why do you have a QList of QMultiMaps? From what I understand just the QMultiMap would suffice. Finding the unchecked item in the multimap is then fairly straight forward using the key you entered for that checkbox when you inserted it into the multimap (if that key has any relation to the checkbox; e.g. the label text of the checkbox). My suggestion is you should rethink the structure of your multimap to fit your needs. For example using the label text of the checkbox as a key and a custom struct containing the information you want to store as the value. Your current keys ( "id" and "test_id" ) are useless.
  • How to include variable name in QRegExp

    3
    0 Votes
    3 Posts
    2k Views
    A
    Thanks for ur reply.....i did it...:)
  • Make clean tries to remove directory: "core"

    5
    0 Votes
    5 Posts
    4k Views
    W
    Ok, to bad. But good to know. Thank you.
  • Qt service framework

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Find & Advanced Find / Replace

    5
    0 Votes
    5 Posts
    2k Views
    F
    @ QTextBlock myBlock; QPlainTextEdit *myEdit = new QPlainTextEdit(); int index = 0; while(index < myEdit->document()->lineCount()) { myBlock = myEdit->document()->findBlockByLineNumber(index); if(myBlock.text().contains("#include")) { qDebug() << "FOUND!"; } index++; }@ I've got to that, though works fine. Hope it helps anyone ^^
  • How to perform search in QTableWidget?

    5
    0 Votes
    5 Posts
    15k Views
    A
    ok thank u...:)
  • Change trinagle in the menu button

    20
    0 Votes
    20 Posts
    10k Views
    B
    problem can be solved much more than I ask all thought to remove the triangle can be with the aid of styles @ QPushButton:: menu-indicator { image: ""; } @
  • Windows Explorer in Qt Application via QAxWidget

    3
    0 Votes
    3 Posts
    3k Views
    D
    This question is not about drag and drop. It is about Windows Explorer in a QAxWidget + drag and drop support.
  • Icon foreground color modification

    4
    0 Votes
    4 Posts
    3k Views
    A
    Well, you could load the image into a QImage, and loop over the pixels. You can change them one-by-one that way. If the shape is not very complicated, it would perhaps be better to just draw it yourself in the right color in Qt? Or, perhaps you can use Qt SVG capabilities and use that to render the shape in the right color?
  • 0 Votes
    2 Posts
    2k Views
    A
    You only need a single instance of QNetworkAccessManager. It can handle multiple requests at the same time.
  • Is there a "What's new/planned in Qt5" wiki somewhere?

    2
    0 Votes
    2 Posts
    3k Views
    sierdzioS
    No exact list is available. Qt5 is still before feature freeze, and a lot of things change on a daily basis. To get best knowledge, you'll have to follow changes to Qt5 sources and discussions on development mailing list. Available docs are: "Qt 5.0":http://developer.qt.nokia.com/wiki/Qt_5.0 "Qt Quick 2":http://doc.qt.nokia.com/qt5/qtquick2-whatsnew.html and "this video":http://developer.qt.nokia.com/videos/watch/whats-new-in-qtquick-2.0 from devdays "regexp info":http://developer.qt.nokia.com/wiki/Regexp_engine_in_Qt5
  • Any tutorial available on QScintilla + C++?

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Problem in implementing signal slot in a threaded dll application

    9
    0 Votes
    9 Posts
    5k Views
    A
    Hi folkz, After long analysis and trying multiple approaches , I came to conclusion that qt dll can only be utilized just to avail the functionality of some of the qt core classes so that we can ship this dll in a platform independent manner. But whenever we wanted to achieve some UI related stuff then it is not good idea to have a qt dll because behaviour would be unexpected on different plattform. So in the scenarios mentioned above where we dont have main thread of third party application, we have to launch a separate process and from there we should do our rest of the qt stuff.. It will simply rock!!!!!!!!!!! I have achieved my functionality like this only. Regards Ashish
  • [SOLVED] how to setup tabs inside the dockwidget

    4
    0 Votes
    4 Posts
    2k Views
    K
    i found what i was looking for. the following code is needed to display the tab inside of the dockwidget. @ui->dockWidget->setWidget(tab);@
  • Problems with QMenu::addMenu

    9
    0 Votes
    9 Posts
    8k Views
    S
    Oh, and now everything is working. Oh sorry... was my fault... But the suggestions from Qt-Creator have no functions with the QAction* action signature ( QMenu::QMenu ). But it works :)
  • Segfault In ~QGraphicsItem() Due To Duplicate Transforms

    5
    0 Votes
    5 Posts
    2k Views
    G
    You're correct in regard with the QGraphicsItemDestructor. src/gui/graphicsview/qgraphicsitem.cpp - line 1489ff: @ if (d_ptr->transformData) { for(int i = 0; i < d_ptr->transformData->graphicsTransforms.size(); ++i) { QGraphicsTransform *t = d_ptr->transformData->graphicsTransforms.at(i); static_cast<QGraphicsTransformPrivate *>(t->d_ptr.data())->item = 0; delete t; } } @ So yes, you run into double deletion of a pointer.
  • 0 Votes
    3 Posts
    3k Views
    D
    Oh sorry. I just tried again and it works as supposed to work. Maybe I tested bad last time, I didn't notice the focus or there was another problem.. Sorry.
  • Style dateedit button

    2
    0 Votes
    2 Posts
    4k Views
    J
    This worked for me, see if it is what you are looking. @ QDateEdit { background-color: rgb(255, 255, 255); } QDateEdit::down-arrow { image: url(:/down-arrow.png); border: 1px solid #000000; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #dedede, stop: 0.5 #434343, stop: 0.51 #000000, stop: 1 #656a6d); } @ [EDIT: code formatting, please wrap in @-tags, Volker]