Results 1 to 6 of 6

Thread: Pan/Move QPixmap in QLabel

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Pan/Move QPixmap in QLabel

    Maybe you should state the general idea of what you are doing? Maybe your whole app should be implemented in Graphics View? The background can be changed, that is not a problem, the real problem you are going to have anyway is that the top-most widget will handle all mouse input so no events will go to underlying widgets if you want to have any.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Aug 2014
    Posts
    11
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Pan/Move QPixmap in QLabel

    Quote Originally Posted by wysota View Post
    Maybe you should state the general idea of what you are doing? Maybe your whole app should be implemented in Graphics View? The background can be changed, that is not a problem, the real problem you are going to have anyway is that the top-most widget will handle all mouse input so no events will go to underlying widgets if you want to have any.
    Thanks for your inputs. I am right now trying the code with Graphics view.
    We are in initial phase of our design, and right now we are concentrating on displaying the screens. I guess event handling will work fine as in my sample app, even when a QLabel was on top of QPushButton, the slot for clicked() of QPushButton was called when we clicked it. In any case, if later on I face such issues, I will come back here again for that.

    We are basically designing a LCD panel display of a large MFP (Printer like those Xerox machines). Earlier we were using PEG, but since PEG is quite limited, we are moving to QT and so we are tasked with the porting.

    Edit: If I have forgotten to say it yet wysota, I really appreciate your replies. They are quick and makes me do some analytical thinking.
    Last edited by ashtray4241; 13th August 2014 at 17:26.

  3. #3
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Pan/Move QPixmap in QLabel

    Quote Originally Posted by ashtray4241 View Post
    We are basically designing a LCD panel display of a large MFP (Printer like those Xerox machines). Earlier we were using PEG, but since PEG is quite limited, we are moving to QT and so we are tasked with the porting.
    Do you mean something like this: http://wirthconsultingb4youbuy.files...hscreen-jp.jpg
    I don't know your exact requirements but I would consider:
    1. QGraphicsView for this task if the whole project idea suits better to widgets then to QtQuick
    2. QtQuick if you want some nice UI like on the screenshot I've pasted. If your device is OpenGL capable, then you can use QtQuick 2 (which is available in Qt >= 5.0) with QtQuick.Controls and stunning animations and so on if there is no OpenGL then you can still use QtQuick 1 (which is no OpenGL accelerated so you should check the performance, but if you do not want any fancy animations, than it should work fine)
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

Similar Threads

  1. How to move QPixmap in QTableView
    By Borland in forum Qt Programming
    Replies: 2
    Last Post: 1st March 2012, 08:38
  2. Replies: 3
    Last Post: 10th April 2011, 15:55
  3. how to move the image in QLabel
    By augusbas in forum Qt Programming
    Replies: 1
    Last Post: 13th October 2010, 08:33
  4. DrawLine over QPixmap within Qlabel
    By Qt Coder in forum Qt Programming
    Replies: 8
    Last Post: 26th March 2009, 12:21
  5. Rotate QPixmap set on QLabel
    By Qt Coder in forum Qt Programming
    Replies: 1
    Last Post: 18th March 2009, 12:08

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.