Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • Unexpected behaviour for QPixmap on QGraphicsScene

    3
    0 Votes
    3 Posts
    1k Views
    R
    After trying a lot of different things, I decided to rebuild the project (I had only just started). After rebuilding it, no problems anymore... I must have screwed something somewhere during the initial design of the form, I suspect. Any ways, thanks Asperamanca for your reply.
  • QStackedWidget Background Image problem

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Problem two forms using Qt and OpenCV

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • [ Resolved ] QTranslator and UTF-8 combo give me trouble

    2
    0 Votes
    2 Posts
    2k Views
    R
    The culprit was the context. Since I am using generated strings from a 3rd party source, the context was always wrong. As soon as I started using the "MyApp" context explicitly in the translate API it started working. thanks to all those who responded.
  • How to default to the smallest possible size for a QDockWidget?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Chinese with Qt

    3
    0 Votes
    3 Posts
    4k Views
    D
    Hi ThaRez, You should tell us which encoding your used in your sqlite database when transfer in xmprpc your remote gui Three encodings widely used in Chinese: UTF-8 GB18030 (also known as GBK/GB2312), China Mainland and Singapore Big5, China Taiwan and Hong Kong
  • Error with icon in delegate

    3
    0 Votes
    3 Posts
    1k Views
    R
    Is it a bug in Qt or my fault?
  • How to best track down a problem that seems to be related to signals

    3
    0 Votes
    3 Posts
    1k Views
    D
    [quote author="rich" date="1336407293"]Try something like this: http://www.kdab.com/kdab-products/gammaray/[/quote] I will! Thank you.
  • [Solved] Patterns in a random QImage?

    4
    0 Votes
    4 Posts
    3k Views
    A
    rand() was always a week function in C... Please add "[SOLVED]" to topic subject if your problem is solved...
  • Could anyone tell me why I cant execute the SQL query?

    2
    0 Votes
    2 Posts
    1k Views
    Q
    Where do you get the QODBC driver(how you build and from which source)?
  • Layout questions (GraphicsView)

    1
    0 Votes
    1 Posts
    918 Views
    No one has replied
  • Cannot figure out QtMultimediaKit on Desktop

    2
    0 Votes
    2 Posts
    1k Views
    W
    Can I use QtMultimediaKit on Desktop at all?
  • To use QKeySequence or an alternative to it

    4
    0 Votes
    4 Posts
    2k Views
    D
    yup, already re-implmented keyPressEvent, still needed a simpler container to map the key sequence (order does not really matter).
  • [solved] std::vector to QList?

    5
    0 Votes
    5 Posts
    18k Views
    T
    Found the solution. The problem was I was using the << operator which apparently just added the individual QVariants of the list, not the list itself. Got it working by using .append instead. Richard
  • How to store two dimensional array in a custom table model?

    3
    0 Votes
    3 Posts
    4k Views
    A
    thank u.....but i tried with this ....i dont know exactly how to start...... But at the end nothing is displaying in the view.... Please have a look at this thread...->http://qt-project.org/forums/viewthread/16982/
  • How to set QWebView content from QHelpEngineCore to enable CSS links?

    28
    0 Votes
    28 Posts
    16k Views
    W
    No problem, maybe I better open a new topic to bring this thing up:) But thanks for the help! You did a great job helping me understand some handy tools ;) There is a way, using Assistant, but the problem is that user can browse there (even when you turn this function off). We don't want them to browse, but to only view the pages that are related to the topic.
  • Is there any way to create un-decorated windows in Qt

    4
    0 Votes
    4 Posts
    2k Views
    Q
    I think this is what you want: "http://qt-project.org/doc/qt-4.8/widgets-windowflags.html":http://qt-project.org/doc/qt-4.8/widgets-windowflags.html search Qt::FramelessWindowHint
  • [SOLVED] Select a QGraphicsItem in a scene

    2
    0 Votes
    2 Posts
    3k Views
    R
    the bounding rect should always be calculated in local coordinates. In your case, fromPoint should be (0, 0) and toPoint would equal to @ QPointF vec; vec = to->pos() - from->pos(); // normalize the vector QPointF vecNorm /= (vec.x() * vec.x() + vec.y() * vec.y()); toPoint = vec - vecNorm * to->width(); @ (that is, assuming your circles and lines don't have different scaling matrices, else you'd have to calculate their radii in line-local coordinates)
  • Mouseover in Graphics View Framework

    2
    0 Votes
    2 Posts
    2k Views
    R
    you can manually create and send events using "sendEvent()":http://qt-project.org/doc/qt-4.8/qcoreapplication.html#sendEvent or "postEvent()":http://qt-project.org/doc/qt-4.8/qcoreapplication.html#postEvent alternatively, you could reimplement said events on your view and manually check whether the mouse has entered one of your invisible items, since afaik any item that is set to invisible won't receive any events.