Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to create an Image viewer for Qt Simulator ???
QtWS25 Last Chance

How to create an Image viewer for Qt Simulator ???

Scheduled Pinned Locked Moved Mobile and Embedded
17 Posts 7 Posters 8.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    prajnaranjan.das
    wrote on last edited by
    #1

    How to create an Image viewer for Qt Simulator ???

    Prajnaranjan Das

    e mail: prajnaranjan.das@gmail.com

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kamalakshantv
      wrote on last edited by
      #2

      [quote author="Prajnaranjan Das" date="1292222511"]How to create an Image viewer for Qt Simulator ???[/quote]

      Where are you facing the difficulty.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        prajnaranjan.das
        wrote on last edited by
        #3

        I don't know how to create it ....I want it to add in my Qt Simulator but not getting any idea,how to do.....Please help me

        Prajnaranjan Das

        e mail: prajnaranjan.das@gmail.com

        1 Reply Last reply
        0
        • S Offline
          S Offline
          stukdev
          wrote on last edited by
          #4

          Try look this example

          "http://doc.qt.nokia.com/4.7/demos-declarative-photoviewer.html":http://doc.qt.nokia.com/4.7/demos-declarative-photoviewer.html
          [quote author="Prajnaranjan Das" date="1292222511"]How to create an Image viewer for Qt Simulator ???[/quote]

          1 Reply Last reply
          0
          • P Offline
            P Offline
            prajnaranjan.das
            wrote on last edited by
            #5

            I don't know anything about QML ...Is QML necessary for doing projects in Qt.....If so Please tell me how to start with QML and what is the tool we use for QML ????

            Prajnaranjan Das

            e mail: prajnaranjan.das@gmail.com

            1 Reply Last reply
            0
            • P Offline
              P Offline
              prajnaranjan.das
              wrote on last edited by
              #6

              Hey sorry,but I dont want to use QML....Without using QML is it Possible to design with the help of Qt ..I want it to add my Qt Simulator...

              Prajnaranjan Das

              e mail: prajnaranjan.das@gmail.com

              1 Reply Last reply
              0
              • S Offline
                S Offline
                stukdev
                wrote on last edited by
                #7

                Oh, but Qt Simulator can work without use qml and qt mobility?

                [quote author="Prajnaranjan Das" date="1292233625"]Hey sorry,but I dont want to use QML....Without using QML is it Possible to design with the help of Qt ..I want it to add my Qt Simulator...[/quote]

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  prajnaranjan.das
                  wrote on last edited by
                  #8

                  @
                  Multimedia::Multimedia(QWidget *parent):
                  QWidget(parent)

                  {

                  QLabel *lbl = new QLabel;
                  QPixmap pixmap(QPixmap::fromImage(QImage(":/images/photos/nokia2.bmp")));
                  lbl->setPixmap(pixmap);
                  lbl->setAlignment(Qt::AlignCenter);
                  
                  videoButton = new QPushButton(tr("&VIDEO"));
                  videoButton->setStyleSheet("* { background-color:#0F3D3D}");
                  
                  photoButton = new QPushButton(tr("&PHOTO"));
                  photoButton->setStyleSheet("*{background-color:#1A6666}");
                  
                  radioButton = new QPushButton(tr("&RADIO"));
                  radioButton->setStyleSheet("*{background-color:#248F8F}");
                  
                  newsButton = new QPushButton(tr("&NEWS"));
                  newsButton->setStyleSheet("*{background-color:#2EB8B8}");
                  
                  connect(videoButton,SIGNAL(clicked()),this,SLOT(openVideo()));
                  connect(photoButton,SIGNAL(clicked()),this,SLOT(openPhoto()));
                  connect(radioButton,SIGNAL(clicked()),this,SLOT(openRadio()));
                  connect(newsButton,SIGNAL(clicked()),this,SLOT(openNews()));
                  
                  QVBoxLayout *layout = new QVBoxLayout;
                  layout->addWidget(lbl,0,0);
                  layout->addWidget(videoButton,1,0);
                  layout->addWidget(photoButton,2,0);
                  layout->addWidget(radioButton,3,0);
                  layout->addWidget(newsButton,4,0);
                  layout->addStretch();
                  setLayout(layout);
                  

                  }

                  void Multimedia::openVideo()
                  {

                  TabDialog *tab = new TabDialog("E://install.ini", this);
                  tab->show();
                  }

                  void Multimedia::openPhoto()
                  {

                  }
                  void Multimedia::openRadio()
                  {

                  }
                  void Multimedia::openNews()
                  {

                  }
                  @

                  Can you please tell me how I can view images by clicking the photo pushButton ?????

                  [edit: code highlighted / Denis Kormalev]

                  Prajnaranjan Das

                  e mail: prajnaranjan.das@gmail.com

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    DenisKormalev
                    wrote on last edited by
                    #9

                    Prajnaranjan Das, please use @ tags for code.

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      prajnaranjan.das
                      wrote on last edited by
                      #10

                      I dont know how to use @ tags....Please tell me how to use that ?????

                      Prajnaranjan Das

                      e mail: prajnaranjan.das@gmail.com

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        prajnaranjan.das
                        wrote on last edited by
                        #11

                        Also Please tell me how I can view Images from my mobile if I clicks a pushButton ....I want it to use in Qt Simulator ????

                        Prajnaranjan Das

                        e mail: prajnaranjan.das@gmail.com

                        1 Reply Last reply
                        0
                        • T Offline
                          T Offline
                          tobias.hunger
                          wrote on last edited by
                          #12

                          Prajnaranjan Das: Please read the documentation that was pointed out to you. They do explain how to do things the Qt way. There further are lots of boks available (a list is "here":http://developer.qt.nokia.com/wiki/Books_and_Links_for_learning_C_and_advanced_topics).

                          We are glad to help with specific questions, but we will not write your application for you.

                          1 Reply Last reply
                          0
                          • G Offline
                            G Offline
                            goetz
                            wrote on last edited by
                            #13

                            Get the Qt sources, go to directory examples/widgets/imageviewer. I think that's basically what you want.

                            http://www.catb.org/~esr/faqs/smart-questions.html

                            1 Reply Last reply
                            0
                            • P Offline
                              P Offline
                              prajnaranjan.das
                              wrote on last edited by
                              #14

                              Actually that example is used for viewing in window but here I want to build a mobile application, in which It should automatically search and show the images from my mobile device...But for this I'm not getting any idea ......So for this can you please help me ????

                              Prajnaranjan Das

                              e mail: prajnaranjan.das@gmail.com

                              1 Reply Last reply
                              0
                              • T Offline
                                T Offline
                                tobias.hunger
                                wrote on last edited by
                                #15

                                Prajnaranjan Das: If you do not want to program the image viewer yourself you can always go to Ovi store and buy one.

                                If you want to program the application yourself you can take the image viewer example that was pointed out to you and start from there. You will need to modify it a bit of course, but I am sure you will be able to figure it out with some documentation and books. Again I and most others here are willing to answer specific questions, but we can not do your work for you.

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  stukdev
                                  wrote on last edited by
                                  #16

                                  I don't understand if you want buy an app, or if you are a newbie and not know Qt.
                                  User have post a possible solution, example of photo viewer like in Qt for desktop or Qml for mobile, you have to look that and choice the best way.
                                  Before please read some documentation about Qt (maybe "here":http://qt.nokia.com/developer/books/) and C++.

                                  [quote author="Prajnaranjan Das" date="1292388345"]Actually that example is used for viewing in window but here I want to build a mobile application, in which It should automatically search and show the images from my mobile device...But for this I'm not getting any idea ......So for this can you please help me ????[/quote]

                                  1 Reply Last reply
                                  0
                                  • J Offline
                                    J Offline
                                    jaak
                                    wrote on last edited by
                                    #17

                                    You can use QImage and a QWidget subclass create one. It should be very easy. Override the paintEvent in the QWidget subclass to draw the image. To automatically search for images, you should need to implement a recursive function for scanning the file system and finding image files. You should use QFile and related classes. Hope this helps.

                                    1 Reply Last reply
                                    0

                                    • Login

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • Users
                                    • Groups
                                    • Search
                                    • Get Qt Extensions
                                    • Unsolved