Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • why I need add the same .a and .dylib file to my Mac qt project

    Unsolved
    2
    0 Votes
    2 Posts
    368 Views
    jsulmJ
    @Princein said in why I need add the same .a and .dylib file to my Mac qt project: macx: LIBS += -L$$PWD/../../../../../../usr/local/Cellar/boost/1.67.0_1/lib/libboost_system.a I don't know why both were added, but this line is wrong. If you add libs using -l you have to remove "lib" prefix. Another thing wrong with this line: -L specifies a directory where libs can be found not a specific lib.
  • EVDEV calibration

    Unsolved
    1
    0 Votes
    1 Posts
    284 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    34 Views
  • Item Select initialization problem in QGraphicsScene

    Unsolved
    1
    0 Votes
    1 Posts
    176 Views
    No one has replied
  • how to design the form . Need valuable inputs

    Unsolved
    11
    0 Votes
    11 Posts
    1k Views
    RatzzR
    @Qt-Enthusiast said in how to design the form . Need valuable inputs: ost left cell show be one ui->tableWidget->item(0,0)->text();
  • QGraphicsDropShadowEffect cut off by margin

    Unsolved
    1
    0 Votes
    1 Posts
    310 Views
    No one has replied
  • Qt Equivalent of X11 ConnectionNumber?

    Unsolved event loop linux
    2
    0 Votes
    2 Posts
    586 Views
    SGaistS
    Hi, Maybe QAbstractEventDispatcher could be a starting point.
  • QGuiApplication::screenAdded signal never emitted

    Unsolved
    3
    0 Votes
    3 Posts
    900 Views
    SGaistS
    Hi, What OS are you working on ? What version of Qt is it ?
  • create listView with certain items from array

    Unsolved array listview modeldata model
    1
    0 Votes
    1 Posts
    719 Views
    No one has replied
  • extract substring from qstring

    Unsolved
    2
    0 Votes
    2 Posts
    754 Views
    aha_1980A
    @s002wjh QString::split() comes to mind... afterwards iterate over the QStringList and use QString::toInt(). HTH
  • Recreating the Slack.App channel selector with Qt

    Unsolved
    5
    0 Votes
    5 Posts
    659 Views
    mrjjM
    @Wolosocu Hi Good work. it looks nice. Unless you use QStyle paint functions, any stylesheet have no effect. QPainter have no idea about it. Im not sure how QStyle::State_Selected and QStyle::State_MouseOver is not working./ be different.
  • how to draw a custom slider which can be moved by mouse as the Qt intrinsic slider?

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    mrjjM
    Hi Just as a note. QtCreator comes with something like the gradient thing. [image: LKUNqi.png] You could look around its code to see how its done.
  • This topic is deleted!

    Solved
    7
    0 Votes
    7 Posts
    133 Views
  • I can't open the table PostgreSQL

    Solved
    10
    0 Votes
    10 Posts
    2k Views
    Christian EhrlicherC
    Postgres is only case-sensitive when the identifier is escaped. Otherwise all is converted to lowercase. See https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS Therefore you have to use SearchTableModel->setTable("\"Test2\""); Or simply use don't use upper-case in your table and column-names.
  • 0 Votes
    9 Posts
    886 Views
    JonBJ
    @mpergand Your suggestion is interesting. However, if the OP wants to go down this route I think he should look carefully at the comments in response to the "accepted solution" at https://stackoverflow.com/a/3996525/489865 (which is where I presume you got it from). They may also explain why you are seeing "odd behaviour" as per your "The issue is if then after you turn off this attribute, the show() method does nothing.". In the same thread https://stackoverflow.com/a/19235153/489865 appears to offer a more complex but "safer" mechanism for determining the size, I believe.
  • Drag and Drop Text between tableview

    Solved
    14
    0 Votes
    14 Posts
    2k Views
    TheCipo76T
    @VRonin You're right! i've put your code in new project's main.cpp and works however i 've wrote that i'm not able to use it.. not that your code don't work. Now i will retry to use it in my project. Thank you and thanks to all others who help me every time.
  • [Solved] QGraphicsItem::boundingRect() and children

    qgraphicsitem boundingrect
    5
    1 Votes
    5 Posts
    3k Views
    A
    @Joel-Bodenmann To elaborate on your answer: The boundingRect() must include every pixel that you intend to paint to in your own item's paint method. That includes e.g. pixels that are outside your item proper, but painted to due to a wide pen. (Calculating the correct boundingRect for items with wide cosmetic pens can be a real pain.)
  • Qt something is printing new line to console very second

    Solved
    4
    0 Votes
    4 Posts
    667 Views
    SGaistS
    Hi, Do you also have that with a default application ?
  • HTML tables cut in half on print to pdf

    Unsolved
    9
    0 Votes
    9 Posts
    5k Views
    N
    Hi, sorry for the late response. Had a lot on my plate lately. For now, the tables are still truncated but modifying the html, i've made it so that the new pages (where the tables get truncated) show the table headers using the css suggested by @CKurdu .
  • Trying to understand semaphore

    Solved
    28
    0 Votes
    28 Posts
    5k Views
    dheerendraD
    Now issue is resolved, you can move the issue to SOLVED state. Enjoy Qt Programming.