Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • MacOS application in Qt widgets/dialogs

    3
    0 Votes
    3 Posts
    1k Views
    M
    Moderator's note: I merged these two topics into the same thread. Please don't double-post questions. Thanks! (Also moved to general forum)
  • 0 Votes
    4 Posts
    4k Views
    L
    We all have had this now and then, haven't we? ;-) You're welcome. Feel free to prepend the initial post title with '[Solved] ...' to indicate that there is already an solution inside.
  • QLabel sizeHint without images

    1
    0 Votes
    1 Posts
    742 Views
    No one has replied
  • [Solved] Styling QTableView items

    5
    0 Votes
    5 Posts
    3k Views
    VRoninV
    I meant removing the border, not disabling the focus :D
  • Where is Digia copyright and trademark text?

    6
    0 Votes
    6 Posts
    2k Views
    S
    Aren't those for commercial uses?
  • [solved] mousePressEvent on qtableview

    6
    0 Votes
    6 Posts
    5k Views
    L
    You're welcome.
  • Scale problem with scroll bar in QGraphicsProxyWidget

    2
    0 Votes
    2 Posts
    3k Views
    P
    Hi. To round the width and height of int type. I wrote code like this: QML: @ Rectangle { width: (parent.width / 2)-(parent.width / 2)%2; .... ScrollAreaWithGraphicsProxyWidget { anchors.fill: parent; } }@
  • Several questions about Qt GUI and Qt Test

    3
    0 Votes
    3 Posts
    1k Views
    L
    Just remove the Qt::ItemIsEnabled flag from the item you want to be disabled. @ QStandardItemModel model = static_cast<QStandardItemModel>(comboBox.model()); QStandardItem *item = model->item(indexOfItemToBeDisabled); item->setFlags(item->flags() & ~Qt::ItemIsEnabled); @ I would prefer to not 'abuse' the return value; use a getter instead. @ public NewDialog : public QDialog { enum Action { Action1, Action2, ... }; public: Action action() { return ... } } NewDialog dialog; if (dialog.exec() == QDialog::Accepted) { switch(dialog.action()) { case Action1: ... } } @ As to QTest I would recommend to take a look at unit tests of Qt itself.
  • Qt5 and QAssistant

    1
    0 Votes
    1 Posts
    925 Views
    No one has replied
  • Need advice regarding OpenGL (and Qt5)

    13
    0 Votes
    13 Posts
    4k Views
    J
    I think I'm now satisfied with my code. One last question regarding renderPixmap. It looks like I've a very common issue (lot's of similar question according to google): the texture is not displayed. http://www.qtcentre.org/threads/976-renderPixmap-and-texture However I don't know how to fix that.
  • Qt5: resize or animation of QMainWindow causes flicker

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 36 compilation errors with msvc2010 when linking libraries

    1
    0 Votes
    1 Posts
    812 Views
    No one has replied
  • How set background of dialog only

    4
    0 Votes
    4 Posts
    1k Views
    R
    Please mark the title Solved.
  • UI Skinning

    4
    0 Votes
    4 Posts
    3k Views
    R
    Thanks for the response, however what I am looking for is sample on advanced skinning the entire window, with the ability to use custom (bitmap) images to lay down as tiles, such as for the titlebar and the min/max/close buttons with their own images. Also on how to handle various screen resolution and fonts size with using bitmap images.
  • Ld: symbol(s) not found collect2: ld returned 1 exit status

    9
    0 Votes
    9 Posts
    9k Views
    S
    [quote author="florent.revelut" date="1300986306"]Currently, you're telling Qt to build an application on one side a library on another side But you're not telling it that the application depends on your library in your Alex_rev_1.pro, add some information for the linker: @ #name of your other library LIBS += -lClasse_scarico folder where it's generated LIBS += -L/Users/lucabertolotti/Desktop/Qt/Progetti_C++/Classe_scarico/Classe_scarico @ Note that usually you don't have one class per library. [/quote] Signed up just to say THANKS!!! I am running Knoppix 7.05 and was trying to install imapfilter but for the life of me could not understand why after installing all its dependences it still would not compile. Turns out OpenSSL was the culprit. Well thanks a TON. IOU1!
  • [Solved]Problem selecting a QGraphicsItem child.

    2
    0 Votes
    2 Posts
    5k Views
    M
    Hi, The answer is in qgraphicsitem.cpp file at mouseReleaseEvent function, the comment says: @ if (event->scenePos() == event->buttonDownScenePos(Qt::LeftButton)) { // The item didn't move if (multiSelect) { setSelected(!isSelected()); } else { ... // Clear everything but this item. Bypass // QGraphicsScene::clearSelection()'s default behavior by // temporarily removing this item from the selection list. ... scene->clearSelection(); ... } } @ Mario.
  • QQueue and Segmentation fault

    10
    0 Votes
    10 Posts
    4k Views
    T
    OK thanks, I got it.
  • Cannot change font size for QTableWidget header in Qt 5.0.0

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Issue with QSqlRelationalTableModel updating Sqlite views

    1
    0 Votes
    1 Posts
    919 Views
    No one has replied
  • Why does QFontMetrics::maxWidth return such a large value?

    3
    0 Votes
    3 Posts
    2k Views
    T
    Yes, I opened Cambria in the SIL ViewGlyph program. The largest I could observe was U+FB04. And metrics2.width(0xFB04) =18, or only 50% greater than 'X'. I saw no character that was eight times as wide. The font has characters from u+0021 to U_FB04. I'm familiar with Unicode and CJK fonts. But, 8 times as wide? That seems a bit much. Is it possible that it is returning something besides pixels? Some version of 26.6? And does Debian 6 not support Unicode and hence why they have much smaller maxWidths?